
#include "dragonet.h"

static int __init dragonet_init(void)
{
	printk(KERN_INFO "DRAGONet ($Rev: %s$)\n"
			 "(C) 2011-11 bekars <bekars@gmail.com>\n", SVN_REV);

	if (drg_sock_init())
		goto out;

	if (drg_proc_init())
		goto out1;

	return 0;

out1:
	drg_sock_exit();
out:
	return -ENOMEM;
}

static void __exit dragonet_exit(void)
{
	DPRINTK(INFO, "Bye ^_^ ...\n");
	drg_sock_exit();
	drg_proc_exit();
}

module_init(dragonet_init);
module_exit(dragonet_exit);

MODULE_LICENSE("GPL");
MODULE_AUTHOR("bekars <bekars@gmail.com>");
MODULE_DESCRIPTION("dragon fly net");

